export const useDebonue=(callback,delay=500)=>{
    let timer;
    return (...arge)=>{
        clearTimeout(timer);
        timer=setTimeout(()=>{
            callback.apply(this,arge)
        },delay)
    }
}